﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;

namespace AccesoDatos
{
    public class BD
    {
        public static string cadenaConexion = ConfigurationManager.ConnectionStrings["cadena"].ConnectionString;
        public static SqlConnection Conexion() {
            SqlConnection conexion = new SqlConnection(cadenaConexion);
            conexion.Open();
            return conexion;
        }
    }
}
